package com.pkk.penguin.frame.know.java.Javacoreknowledge.thread.threadsimple;

/**
 * @description: 基础的线程实现
 * @author: peikunkun
 * @create: 2019-12-23 17:30
 **/
public class SimpleThread extends Thread {


  /**
   * If this thread was constructed using a separate
   * <code>Runnable</code> run object, then that
   * <code>Runnable</code> object's <code>run</code> method is called;
   * otherwise, this method does nothing and returns.
   * <p>
   * Subclasses of <code>Thread</code> should override this method.
   *
   * @see #start()
   * @see #stop()
   */
  @Override
  public void run() {
    System.out.println(Thread.currentThread().getName() + " is Running!");
  }


  public static void main(String[] args) {
    new SimpleThread().start();
  }
}
